import java.util.Scanner;

public class CompanyText {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Company company = new Company();
        company.name=in.next();
        company.site=in.next();
        company.telephone=in.next();
        while (true) {
            System.out.println("1：招聘，2：输出员工信息，3：辞退员工，4：退出");
            int a = in.nextInt();
            if (a == 1) {
                System.out.println("输入新员工姓名");
                String sfname = in.next();
                company.recruit(sfname);
            } else if (a == 2) {
                company.outname();
            }else if(a==3){
                System.out.println("请输入辞退员工名称");
                String name=in.next();//不考虑员工名字重复
                company.delete(name);
            }else {
                return;
            }
        }
    }
}
